/* 
 *  Copyright (C) 2006 James Young
 * `gurumind(a)gmail.com
 * 
 */

using System;
using System.Collections.Generic;
using System.Text;

namespace IPDEditor
{

    public class IPDAutoText : IPDDatabase
    {
        public IPDAutoText()
        {
        }

        public IPDAutoText(IPDName IpdName)
            : base(IpdName)
        { }

        public override string ToLongString()
        {
            return string.Format("{2} \r {0} -> \"{1}\"", EncUtil.AutoBin2String(Items[0].data), EncUtil.AutoBin2String(Items[1].data), base.ToString());
        }

        public override string ToString()
        {
            return EncUtil.AutoBin2String(Items[0].data);
        }
    }
}
